package file01;

import java.io.File;

public class DeleteDirDemo {
    public static void main(String[] args) {
        File dir = new File("./homework");//当前目录下创建
        if (dir.exists()){
            dir.delete();
            System.out.println("文件已删除");
        }else {
            System.out.println("文件不存在");
        }

    }
}
